package com.sskj.b70.v.activity;

import android.widget.TextView;

import com.sskj.b70.MyAppLication;
import com.sskj.b70.R;
import com.sskj.b70.common.widget.ToolBarLayout;
import com.sskj.b70.p.base.BasePresenter;
import com.sskj.b70.utils.HideUtil;
import com.sskj.b70.v.base.BaseActivity;

import butterknife.BindView;

/**
 * <pre>
 *     author : 李岩
 *     e-mail : 465357793@qq.com
 *     time   : 2018/04/03
 *     desc   : 个人中心
 *     version: 1.0
 * </pre>
 */
public class PersonalActivity extends BaseActivity<BasePresenter> {


    @BindView(R.id.toolBar)
    ToolBarLayout toolBar;
    @BindView(R.id.personal_mobile)
    TextView personalMobile;
    @BindView(R.id.personal_trabcaction_id)
    TextView personalTrabcactionId;
    @BindView(R.id.personal_name)
    TextView personalName;
    @BindView(R.id.personal_ident)
    TextView personalIdent;

    @Override
    protected int getLayoutResId() {
        return R.layout.activity_personal;
    }

    @Override
    public BasePresenter getPresenter() {
        return new BasePresenter();
    }

    @Override
    protected void onViewBinding() {
        toolBar.setLeftButtonOnClickLinster(v -> finish());

        personalMobile.setText(HideUtil.getPhoneHide(MyAppLication.getTel()));
        personalTrabcactionId.setText(MyAppLication.getAccountPer());
        personalName.setText(MyAppLication.getName());
        personalIdent.setText(HideUtil.getIDCardHide(MyAppLication.getIdCard()));
    }

}
